<div class="filter-options">
<form method="POST">
	<a href="<?=APPLICATION_STARTURL?>/relation/cancelfilters"><img src="<?=APPLICATION_STARTURL?>/general/icons/cancel.png" style="border:0px;float:right;margin-top: 4px;margin-right: 5px;" /></a>
	<h3>Zoeken / Filteren</h3>
	<?=$this->FormDisplay($this)->text('keyword', $this->keyword,'')?>
	<b>Zoeken in</b><br/>
	<?=$this->FormDisplay($this)->checkbox('context[lastname]', 'lastname',isset($this->contextParams['lastname']), 'Achternaam','block')?>
	<?=$this->FormDisplay($this)->checkbox('context[city]', 'city',isset($this->contextParams['city']), 'Woonplaats','block')?>
	<?=$this->FormDisplay($this)->checkbox('context[debtornumber]', 'debtornumber',isset($this->contextParams['debtornumber']), 'Klantnummer','block')?>
	<?=$this->FormDisplay($this)->checkbox('context[accountnumber]', 'accountnumber',isset($this->contextParams['accountnumber']), 'Factuurnummer','block')?>
	<?=$this->FormDisplay($this)->submit('zoeken','Zoeken')?>
	<h3>Filter op kenmerken</h3>
	<?	foreach ($this->attributes as $attribute):?>
		<?=$this->FormDisplay($this)
			->checkbox(
				'attribute['.$attribute->attribute_id.']',
				$attribute->attribute_id,
				isset($this->attributeParams[$attribute->attribute_id]),
				$attribute->attribute_name,
				'block',
				array('onclick="this.form.submit()"'
			)
		)?>
	<? 	endforeach;?>
</form>
</div>